#include "bf.h"
RESULT contains(const char *str, const char *key)
{
    int iterator = 0, j = 0;
    int len_str = 0, len_key = 0;
    if (str == NULL || key == NULL)
        exit(1);
    if (*str == 0 || *key == 0)
        exit(1);
    len_str = strlen(str);
    len_key = strlen(key);
    if (len_str < len_key)
        return NOT_FOUND;
    for (iterator = 0; iterator + len_key < len_str + 1; iterator++)
    {
        if (memcmp(str + iterator, key, len_key) == 0)
            return iterator;
    }
    return NOT_FOUND;
}